PIC10F322 DUAL MAINS TOGGLE SWITCH

LIGHT_1

This circuit was built to remote switch a mains operated device, rather than running a cable carrying 230Vac, a cheap low voltage signal cable is run from the operating push button switch to the device under control, approximately ten meters away from each other.

A six pin SOT23 PIC10F322 is used to toggle two independent 230Vac switched outputs. Here, two solid state relays are used for mains switching. These relays are rated for 2 amps maximum switching current which is more than enough for the devices under control here, larger switching current relays can be used if desired. Each of the two push buttons has a status LED.

This project is shown here mainly for the PIC code as there seems to be few ASM examples around for the PIC10F322. The code makes use of a interrupt service routine for button press detection and the XOR function for toggle.


Schematic
asm code
Controller

Barry Zarucki M0DGQ

HOME